import { defineStore } from "pinia"

type UserState = {
  loginUserInfo: UserResponse | null
}

const useUserStore = defineStore("user", {
  state: (): UserState => ({
    loginUserInfo: null
  }),
  actions: {
    setLoginInfoAction(newLoginUserInfo: UserResponse | null) {
      this.loginUserInfo = newLoginUserInfo
    }
  }
})

export default useUserStore
